<%@ include file="/common/taglibs.jsp"%>
<%@ page contentType="text/html; charset=UTF-8"%>
<%@ taglib prefix="product" tagdir="/WEB-INF/tags/product"%>
<title>${title}</title>
<content tag="buttons">
	<probiz:iconBtn btnType="add" btnTextKey="common.iconBtn.newTask" onclick="newTask()"  />
	<probiz:iconBtn btnType="start" btnTextKey="common.iconBtn.restart" onclick="restartImport()"  />
	<probiz:iconBtn btnType="pause" onclick="suspendImport()"   disabled="yes"/>
	<probiz:iconBtn btnType="resume" onclick="resumeImport()"  disabled="yes"/>
	<probiz:iconBtn btnType="stop" onclick="stopImport()"   disabled="yes"/>
</content>
<form name="importForm" id="importForm">
	<div class="top clearfix">
		<ul class="tab">
			<li class="curr"><span>${title}</span></li>
		</ul>
	</div>
	
	<div class="modify">
		<table width="100%" border="0" cellspacing="0" cellpadding="0" class="com_modi_table">	
			<tr>
				<th class="label_width_1">
					<fmt:message key="import.importInfo.status"/>:
					<%-- hidden--%>
					<input type="hidden" id="status" value=""/>
				</th>
				<td>
					<div id="importStatus">
					</div>
					<br/>
					<div class="energy">
						<span id="completedPercent" style="width:0%"></span>
					</div>
					<div id="process" style="float:left">
					</div>
				</td>
			</tr>
			<tr>
				<th height="30px;">
					<fmt:message key="import.importInfo.importFileUrl" />:
				</th>
				<td id="importFileUrl">
				</td>
			</tr>
			<tr>
				<th height="30px;">
					<fmt:message key="import.importInfo.failFileUrl" />:
				</th>
				<td id="failFileUrl">
				</td>
			</tr>
			<tr>
				<th height="30px;">
					<fmt:message key="import.importInfo.logFileUrl" />:
				</th>
				<td id="logFileUrl">
				</td>
			</tr>
			<tr>
				<th height="30px;">
					<fmt:message key="import.importInfo.failLogFileUrl" />:
				</th>
				<td id="failLogFileUrl">
				</td>
			</tr>
			<tr>
				<th>
					<fmt:message key="import.importInfo.startImportTime" />:
				</th>
				<td id="startImportTime">
				</td>
			</tr>
			<tr>		
				<th>
					<fmt:message key="import.importInfo.endImportTime" />:
				</th>
				<td id="endImportTime">
				</td>
			</tr>
			<tr>
				<th >
					<fmt:message key="import.importInfo.successInsertCount" />:
				</th>
				<td id="successInsertCount">
				</td>
			</tr>
			<tr>		
				<th>
					<fmt:message key="import.importInfo.successUpdateCount" />:
				</th>
				<td id="successUpdateCount">
				</td>
			</tr>
			<tr>
				<th>
					<fmt:message key="import.importInfo.failInsertCount" />:
				</th>
				<td id="failInsertCount">
				</td>
			</tr>
			<tr>		
				<th>
					<fmt:message key="import.importInfo.failUpdateCount" />:
				</th>
				<td id="failUpdateCount">
				</td>
			</tr>
			<tr>
				<th>
					<fmt:message key="import.importInfo.continuouslyFailCount" />:
				</th>
				<td id="continuouslyFailCount">
				</td>
			</tr>
			<tr>
				<th>
					<fmt:message key="import.importInfo.beginRow" />:
				</th>
				<td id="beginRow">
				</td>
			</tr>
			<tr>
				<th>
					<fmt:message key="import.importInfo.endRow" />:
				</th>
				<td id="endRow">
				</td>
			</tr>
			<tr>
				<th>
					<fmt:message key="import.importInfo.failData" />:
				</th>
				<td>
					<div id="failData" style="width:600px;word-wrap:break-word;overflow:hidden;">
					</div>
				</td>
			</tr>
			
		</table>
	</div>			
</form>	
<script type="text/javascript"	src="${ctxPath}/scripts/probiz/imports/importStatus.js?rs=${appConfig.rs}"></script>
<script type="text/javascript">	
$j(document).ready(function () {
	__FMTExtend = {
		import_upload_file_error:"<fmt:message key="import.upload.file.error"/>",
		import_upload_file_notEmpty:"<fmt:message key="import.upload.file.notEmpty"/>",
		import_stop_confirm:"<fmt:message key="import.stop.confirm"/>",
		import_restart_confirm:"<fmt:message key="import.restart.confirm"/>",
		import_newTask_confirm:"<fmt:message key="import.newTask.confirm"/>",
		import_fileRowSize_tip_1:"<fmt:message key="import.fileRowSize.tip.1"/>",
		import_fileRowSize_tip_2:"<fmt:message key="import.fileRowSize.tip.2"/>",
		import_file_download:"<fmt:message key="import.file.download"/>"
	};
	$j.extend(__FMT, __FMTExtend); 
});	
	
</script>
<script type='text/javascript'>
$j(document).ready(function () {
	getImportInfo();
	importInfoInterval = setInterval("getImportInfo();",5000); 
});	
</script>